package com.situ.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.situ.crm.common.mapper.BaseMapper;
import com.situ.crm.entity.Menu;
import com.situ.crm.vo.MenuVO;
import com.situ.crm.vo.NavbarVO;

public interface MenuMapper extends BaseMapper<Menu>{
	
	List<NavbarVO> selectAllMenus(Integer userId);

    List<Menu> selectMenus(String name);

    @Select("select * from menu where parent_id = #{i}")
    List<Menu> selectByParentId(int i);

	List<MenuVO> selectMenuTree(Integer roleId);
}
